package com.yangtao.prototype.master.constant.web;

import com.yangtao.framework.common.Option;
import com.yangtao.framework.web.struts2.BaseModel;
import com.yangtao.prototype.master.domain.Constant;

import java.util.ArrayList;
import java.util.List;

public class ConstantModel extends BaseModel {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	private Constant constant = new Constant();
	/**
	 * 新增的列表
	 */
	private List<Constant> newItems = new ArrayList<Constant>();
	/**
	 * 删除的列表
	 */
	private List<Constant> deletedItems = new ArrayList<Constant>();
	/**
	 * 修改的列表
	 */
	private List<Constant> modifiedItems = new ArrayList<Constant>();

	private String code;

	private List<Option> constantList;

	public List<Option> getConstantList() {
		if (constantList == null)
			constantList = new ArrayList<Option>();
		return constantList;
	}

	public void setConstantList(List<Option> constantList) {
		this.constantList = constantList;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Constant getConstant() {
		return constant;
	}

	public void setConstant(Constant constant) {
		this.constant = constant;
	}

	public List<Constant> getNewItems() {
		return newItems;
	}

	public void setNewItems(List<Constant> newItems) {
		this.newItems = newItems;
	}

	public List<Constant> getDeletedItems() {
		return deletedItems;
	}

	public void setDeletedItems(List<Constant> deletedItems) {
		this.deletedItems = deletedItems;
	}

	public List<Constant> getModifiedItems() {
		return modifiedItems;
	}

	public void setModifiedItems(List<Constant> modifiedItems) {
		this.modifiedItems = modifiedItems;
	}
}
